package com.neuedu.dao.impl;

import com.neuedu.dao.AddHuoDongNumberDao;
import com.neuedu.dao.AddXiaoNumberDao;
import com.neuedu.model.AddHuoDongNumber;
import com.neuedu.model.AddXiaoquNumber;
import com.neuedu.utils.DbUtil;

import java.util.List;

public class AddHuoDongNumberDaoImpl implements AddHuoDongNumberDao {

    @Override
    public AddHuoDongNumber select() {
        List<AddHuoDongNumber> list = DbUtil.select(AddHuoDongNumber.class, "id=?", 1);

        if (list!=null&&list.size()>0){
            return list.get(0);
        }
        return null;
    }

    @Override
    public int update(AddHuoDongNumber addHuoDongNumber) {
        return DbUtil.update(addHuoDongNumber,"id=?",1);
    }

}
